/*
 * @Description: 
 * @Author: Aroma
 * @Date: 2024-09-13 17:41:20
 * @LastEditors: Aroma
 * @LastEditTime: 2024-09-13 18:38:04
 * @别瞎看: 你个无脑牛马
 */
public class TestSinleten{
    public static void main(String[] args) {
        // 通过getInstance()方法获取Singleton类的唯一实例
        Singleton singleton1 = Singleton.getInstance();
        Singleton singleton2 = Singleton.getInstance();
    
        // 验证singleton1和singleton2是否是同一个实例
        System.out.println(singleton1 == singleton2); // 输出 true
    }

}
